package zhao.yao.chen.backend.basic.module.system.api.social;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import zhao.yao.chen.backend.basic.module.system.service.social.SocialClientService;

/**
 * 社交应用的 API 实现类
 *
 * @author zyc
 */
@Service
@Validated
public class SocialClientApiImpl implements SocialClientApi {

    @Resource
    private SocialClientService socialClientService;

    @Override
    public String getAuthorizeUrl(Integer socialType, Integer userType, String redirectUri) {
        return socialClientService.getAuthorizeUrl(socialType, userType, redirectUri);
    }

}
